﻿<cfscript>
/** 
* ORM MatrixUser
* 
* @hint "Hibernate persistenter t_user. 帐号基础信息表" 
* 
*/ 

component 
	displayname="public.service.orm.senate.MatrixUser" 
	output=false 
	persistent=true 
	selectBeforeUpdate=true dynamicInsert=true dynamicUpdate=true 
	cacheuse="Transactional" 
	entityname="MatrixUser" 
	table="t_user"
	{
	
	property type="string" name="UID" column="user_id" fieldtype="id" generator="assigned" hint="统一身份认证ID";

	property type="string" name="Name" column="user_name" hint="用户名";
	property type="string" name="Email" column="user_email" hint="电子邮件";
	property type="string" name="LastTimeLogin" column="user_last_login" hint="上次登录时间";
	property type="string" name="LastTimeIP" column="user_last_login_ip" hint="上次登录IP地址";

	property name="MatrixGroupUsers" type="array" lazy="true" inverse="true" cascade="delete-orphan" fieldtype="one-to-many" fkcolumn="user_id" cfc="MatrixGroupUser" hint="用户授权";

}

</cfscript>